#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTimer>
#include "thread_one.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
    void dealclicked();
    void dealtimeout();

private slots:
    void dealover();//处理新线程返回的结束信号


private:
    Ui::MainWindow *ui;
    QTimer *timer;
    thread_one *thread;
};

#endif // MAINWINDOW_H
